import VueRouter from 'vue-router'
// 导入对应的组件
import homeContainer from './components/tabbar/homeContainer.vue'
import memberContainer from './components/tabbar/memberContainer.vue'
import searchContainer from './components/tabbar/searchContainer.vue'
import shopcarContainer from './components/tabbar/shopcarContainer.vue'
var router = new VueRouter({
    routes: [
    //  路由重定向 刚开始加载页面的是home
      { path: '/', redirect: '/home' },
      { path: '/home', component: homeContainer },
      { path: '/member', component: memberContainer },
      { path: '/shopcar', component: searchContainer },
      { path: '/search', component: shopcarContainer }, 
    ],
    //覆盖默认的路由高亮的类，默认的类叫做router-link-active
    linkActiveClass:'mui-active'
  })
  export default router